<?php

use yii\helpers\Html;
use common\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\Elective */

$this->title = '选修信息'.$model->ID;
$this->params['breadcrumbs'][] = ['label' => 'Electives', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="elective-view">

    <div class="panel">
		<div class="panel-heading">
            选修信息
		</div>
        <div class="panel-body">
            <?= DetailView::widget([
                'model' => $model,
                'fieldRows' => [
                    [
                        '学校' => $model->xS->xX->ZWMC,
                        '课程名称' => $model->jXKC->kK->kC->KCMC,
                    ],[
                        '姓名' => $model->xS->XSXM,
                        '课程代码' => $model->jXKC->kK->kC->KCDM,
                    ],[
                        '学号' => $model->xS->XH,
                        '课程类别' => $model->jXKC->kK->kC->KCLB,
                    ],[
                        '学期' => $model->jXKC->kK->xQ->XQMC,
                        '课程性质' => $model->jXKC->kK->kC->KCXZ,
                    ],[
                        '总成绩' => $model->ZCJ,
                        '平时成绩' => $model->PSCJ,
                    ],[
                        '获得学分' => $model->HDXF,
                        '实验成绩' => $model->SYCJ,
                    ],[
                        '选修时间' => $model->XXSJ,
                        '实践成绩' => $model->SJCJ,
                    ],[
                        '审核状态' => $model->SHZT,
                        '考试成绩' => $model->KSCJ,
                    ]
                ]
            ]) ?>
        </div>
    </div>

<style>
#t1 th{
    text-align:right;
}
#t2 th,#t2 td{
    text-align:center;
}
</style>
</div>
